import { HTTP } from '@/utils/httpRequestUtil'
import URL from '@/api/api'
export default {
  loadByPaging (params, cb) {
    HTTP.post(URL.PurTrackDemLoadByPaging, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  allocation (params, cb) {
    HTTP.post(URL.PurTrackDemAllocation, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  cancelAllocation (params, cb) {
    HTTP.post(URL.PurTrackDemDisAllocation, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  }
}
